Python (programming language)
part 17/106 · 174.3 KB total
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
• The pass statement, serving as a NOP (i.e., no operation), which is syntactically needed to create an empty code block
• The assert statement, used in debugging to check for conditions that should apply
• The yield statement, which returns a value from a generator function (and also an operator); used to implement coroutines
• The return statement, used to return a value from a function
• The import and from statements, used to import modules whose functions or variables can be used in the current program
• The match and case statements, analogous to a switch statement construct, which compares an expression against one or more cases as a control-flow measure
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────